import {api} from '../request'
// 国家列表
export function getCountries() {
    return api('/api/v1/countries',"",'post');
}

// 工作台-底部-热销产品
export function getRankProducts(params) {
    return api('/api/v1/dash/top_products',params,'post');
}
export function getcategoryProducts() {
    return api('/api/v2/dashboard/category_rankings',"",'get');
}
export function getdashboard() {
    return api('/api/v2/dashboard/top_sales_rankings',"",'get');
}
export function gethotselling() {
    return api('/api/v2/dashboard/category_hot_selling',"",'get');
}
export function getcountryrankings() {
    return api('/api/v2/dashboard/product_country_rankings',"",'get');
}

export function getproductsummary() {
    return api('/api/v2/dashboard/product_summary',"",'get');
}

export function getnewproduct() {
    return api('/api/v2/dashboard/new_product_rankings',"",'get');
}

// 产品分类列表
export function getCategory(params) {
    return api('/api/v1/category/lists',params,'post');
}

// 洞察页-产品数据T100
export function getProducts(params) {
    return api('/api/v2/insights',params,'post');
}

// 副本 - 洞察页-产品数据-增速排名
export function getProductsRank(params) {
    return api('/api/v2/insights/growth',params,'post');
}
